<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/10/2016
 * Time: 14:31
 */
$server_address = "http://192.168.40.135:81/";

$real_url = "{$server_address}handler/flag_handler.php";

$paramsForward = array();

$params = array();
foreach($_REQUEST as $k=>$v)
{
    $params[$k] = $v;
}
$opt = array('http'=>array(
    'method' => 'POST',
    'header' => 'Content-Type: application/x-www-form-urlencoded',
    'content' => http_build_query($params)
));

echo file_get_contents($real_url, false, stream_context_create($opt));
